<table class="title" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('invoice_lang.lbl_sale_info')?></td>
  </tr>
</table>
<table class="list" align="center" cellspacing="1" cellpadding="5">
  <tr class="list_header">
    <td><?php echo Kohana::lang('invoice_lang.lbl_invoice_id')?></td>
    <td><?php echo Kohana::lang('invoice_lang.lbl_date')?></td>
    <td><?php echo Kohana::lang('invoice_lang.lbl_billing')?></td>
    <td><?php echo Kohana::lang('invoice_lang.lbl_shipping')?></td>
    <td><?php echo Kohana::lang('invoice_lang.lbl_status')?></td>    
  </tr>
  <?php for($i=0;$i<count($mlist);$i++){ ?>
  <tr class="row<?php if($i%2 == 0) echo 2 ?>">
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_order/edit/<?php echo $mlist[$i]['orders_id']?>"><?php echo $mlist[$i]['orders_id']?></a></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_order/edit/<?php echo $mlist[$i]['orders_id']?>"><?php echo $mlist[$i]['orders_date']?></a></td>
    <td><a href="<?php echo $this->site['base_url']?>admin_order/edit/<?php echo $mlist[$i]['orders_id']?>"><?php echo $mlist[$i]['billing_firstname']?> <?php echo $mlist[$i]['billing_lastname']?></a></td>
    <td><a href="<?php echo $this->site['base_url']?>admin_order/edit/<?php echo $mlist[$i]['orders_id']?>"><?php echo $mlist[$i]['shipping_firstname']?> <?php echo $mlist[$i]['shipping_lastname']?></a></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_order/edit/<?php echo $mlist[$i]['orders_id']?>">
	<?php if($mlist[$i]['orders_status'] == 1)
			echo Kohana::lang('invoice_lang.lbl_process');
		  elseif($mlist[$i]['orders_status'] == 2)
		  	echo Kohana::lang('invoice_lang.lbl_shipped');
		  elseif($mlist[$i]['orders_status'] == 3)
		  	echo Kohana::lang('invoice_lang.lbl_cancel');
		  elseif($mlist[$i]['orders_status'] == 4)
		  	echo Kohana::lang('invoice_lang.lbl_return');
	?>
    </a></td>
  </tr>
  <?php } ?>
</table>